package com.terren.spider.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.AppDataService;
import com.terren.spider.entity.biz.AppData;
import com.terren.spider.entity.biz.AppRequestParam;

@Service("appDataService")
public class AppDataServiceImpl extends BasicServiceSupportImpl implements AppDataService{
	private final String SQL_MAPPER = "appDataMapper.";
	@Override
	public void save(List<AppData> items) throws Exception {
		basicDao.save(SQL_MAPPER+"addAppData", items);
	}
	@Override
	public List<AppRequestParam> getAppRequestParam(AppRequestParam param) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getAppRequestParam", param);
	}
}
